# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from wetalk.models import *
from django.contrib import admin

# Register your models here.
@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
    list_display = ('id', 'name')
    search_fields = ('id', 'name')


@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
    list_display = ('id', 'nickname', 'room', 'likes', 'create_time', 'status')
    search_fields = ('id', 'nickname', 'content')


@admin.register(Thumbsup)
class ThumbsupAdmin(admin.ModelAdmin):
    list_display = ('ip', 'message_id', 'message')

